From 0971aac7cd29e073dddfe0cdbf38eb0a9304adcb Mon Sep 17 00:00:00 2001 From: Behnam Esfahbod Date: Sun, 10 Sep 2017 17:45:59 -0700 Subject: [PATCH] [travis] Enable cache for $HOME/.cargo/bin/ This should accelerate the `cargo install mdbook` step under `install`, which is currently called on all linux+nightly setups. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b925208bc..c2f7ca36c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,10 @@ dist: trusty git: depth: 1 +cache: + directories: + - $HOME/.cargo/bin/ + matrix: include: - env: TARGET=x86_64-unknown-linux-gnu @@ -22,7 +26,7 @@ matrix: ALT=i686-unknown-linux-gnu rust: nightly install: - - cargo install mdbook + - mdbook --help || cargo install mdbook --force script: - cargo test - cargo doc --no-deps -- 2.30.2